import http from "./http";
// export const getMoviesApi = (params) => http.get("/movies/list", params);
// export const getRatedApi = (params) => http.get("/rated/list", params);
// //获取城市信息
// export const getCityApi = (params) => http.get("/area/list", params);

// //首页的上拉加载
// export const getMoviesMoreApi = (data) => http.post("/movies/more/", data);
// //获取详情页
// export const getMoviesMoreDetail = (data) => http.post("/movies/detail/", data);

//获取社区列表
export const getCommunityApi = (data) => http.get("/community/list", data);
//获取社区最新发表
export const getNewCommunityApi = (data) => http.post("/community/sort", data);
//获取
export const getDiseaselistApi = (data) => http.get("/home/diseaselist", data);

//获取专家服务
export const getExpertApi = (params) => http.get("/home/expertlist", params);
//获取专家服务搜索接口
// export const getExpertsearchApi = (params) =>
//   http.get("/home/expertsearch", params);
export const getExpertsearchApi = (data) =>
  http.post("/home/expertsearch", data);
export const getmallshoplistApi = (data) =>
  http.get("/mall/mallshoplist", data);
export const getDetailApi = (data) => http.post("/mall/shopdetail", data);
export const getmallshoplist = (data) => http.get("/shoplist", data);
export const getHomeListdata = (data) => http.get("/home/homelist", data);
export const getLoginApi = (data) => http.post("/user/login", data);
// 获取个人信息接口
//获取短信验证码
export const getCodeApi = (data) => http.post1("/register/getCode", data);
// 注册或者登录
export const postRegisterApi = (data) => http.post1("/register", data);
//登录跳转
export const SmsgetLoginApi = (data) => http.post("/user/register", data);

export const getUserInfoApi = (data) => http.post("/user/userInfo", data);

export const getKeyApi = (data) => http.post("/user/key", data);

// 商城热门好货
export const getMallHotListApi = (data) => http.get("/mall/mallhotlist", data);

// 商城底部导航列表
export const getnavdruglistApi = (data) => http.get("/mall/mallnavlist", data);

export const getdocterlist = (data) => http.get("/home/docterlist", data);
